﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Protocol
{
    /// <summary>
    /// 房间匹配协议，模型中的command
    /// </summary>
    public static class MatchProtocol
    {
        public const int Refresh_CREQ = 0;//刷新请求
        public const int Refresh_SRES = 1;//刷新反馈
        public const int Create_CREQ = 2;//创建房间请求
        public const int Create_SRES = 3;//创建房间反馈
        public const int Exit_CREQ = 4;//退出房间请求
        public const int Exit_BRO = 5;//退出房间广播
        public const int Enter_CREQ = 6;//进入房间请求
        public const int Enter_BRO = 7;//进入房间广播
        public const int Change_CREQ = 8;//更换队伍请求
        public const int Change_BRO = 9;//更换队伍广播
        public const int Chat_CREQ = 10;//聊天请求
        public const int Chat_BRO = 11;//聊天广播
        public const int Fight_CREQ = 12;//战斗请求
        public const int Fight_BRO = 13;//战斗广播
    }
}
